package com.jiyongjun.component.exception.convertor;

import com.jiyongjun.component.core.model.DubboLogContext;
import com.jiyongjun.component.exception.parser.ExceptionParseResult;
import org.apache.dubbo.rpc.Result;

/**
 * <h2></h2>
 * <h3>描述：</h3>
 *
 * @author yongjun.jyj
 * @since 2022/6/16 16:31
 */
public interface DubboProviderExceptionConvertor {

    Object converExceptionToReturnTypeInstance(Class<?> returnType, ExceptionParseResult exceptionParseResult);

    void handleResponse(Result result, DubboLogContext logContext);


}
